package com.hkts.management.message.notification;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author zty
 * @date 2020/4/23 下午8:31
 * @description:
 */
@Data
public class SubscribeMessageVO {
    //具体的订阅消息的key {{thing4.DATA}} 则key为thing4
    private Thing1 thing1;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Time2 time2;

    @Data
    @AllArgsConstructor
    public static class Thing1{
        private String value;
    }
    @Data
    @AllArgsConstructor
    public static class Time2 {
        private String value;
    }

}